package sc.web.action;


import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import sc.web.action.common.BaseAction;


@Controller
public class LoginAction extends BaseAction {
	private Logger logger = Logger.getLogger(LoginAction.class);

	@RequestMapping("/login.htm")
	public String doLogin(String error, ModelMap model) {
		logger.info("doLogin" + error);
		if (StringUtils.isNotEmpty(error))
			model.addAttribute(ERROR_MESSAGE,
					"LoginName or Password not right!");
		return "login";
	}
}
